package com.hefan.schedule.model;

import org.apache.commons.lang.builder.ToStringBuilder;

import java.sql.Timestamp;

public class ScheduleTaskTypeRunningInfo {

  private long id;

  /**
   * 任务类型：原始任务类型+"-"+ownSign
   */
  private String taskType;

  /**
   * 原始任务类型
   */
  private String baseTaskType;

  /**
   * 环境
   */
  private String ownSign;

  /**
   * 最后一次任务分配的时间
   */
  private Timestamp lastAssignTime;

  /**
   * 最后一次执行任务分配的服务器
   */
  private String lastAssignUUID;

  private Timestamp gmtCreate;

  private Timestamp gmtModified;

  public String toString() {
    return ToStringBuilder.reflectionToString(this);
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public String getOwnSign() {
    return ownSign;
  }

  public void setOwnSign(String ownSign) {
    this.ownSign = ownSign;
  }

  public String getTaskType() {
    return taskType;
  }

  public void setTaskType(String taskType) {
    this.taskType = taskType;
  }

  public Timestamp getLastAssignTime() {
    return lastAssignTime;
  }

  public void setLastAssignTime(Timestamp lastAssignTime) {
    this.lastAssignTime = lastAssignTime;
  }

  public String getLastAssignUUID() {
    return lastAssignUUID;
  }

  public void setLastAssignUUID(String lastAssignUUID) {
    this.lastAssignUUID = lastAssignUUID;
  }

  public Timestamp getGmtCreate() {
    return gmtCreate;
  }

  public void setGmtCreate(Timestamp gmtCreate) {
    this.gmtCreate = gmtCreate;
  }

  public Timestamp getGmtModified() {
    return gmtModified;
  }

  public void setGmtModified(Timestamp gmtModified) {
    this.gmtModified = gmtModified;
  }

  public String getBaseTaskType() {
    return baseTaskType;
  }

  public void setBaseTaskType(String baseTaskType) {
    this.baseTaskType = baseTaskType;
  }

}
